package cn.graydove.bot.service;

import cn.graydove.bot.model.entity.Image;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

public interface ImageService {

    Image upload(String uploaderNickname, Long uploader, Long uploadGroup, String imgUrl, String filename) throws IOException;

    List<Image> getImages();

    Image getRandomOne();

    Image findById(int id);

    Image findByImageName(String image);

    void deleteById(int id);

    String getUri(String filename);

    String getVisitUrl(String filename);
}
